package com.qmctl.rest.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.qmctl.rest.bean.selldeliveryorder.DetailClazz;
import com.qmctl.rest.bean.selldeliveryorder.ItemClazz;

import java.io.Serializable;
@SuppressWarnings("serial")
@Entity
@Table(name="tSellInvoicedetail",schema="")
public class SellInvoicedetail implements Serializable{
  @Id
  private String sellInvoiceDetailId;
  private String invoiceId;
  private String detailId;
  private String itemName;
  private String unit;
  private long price;
  private long quantity;
  private long amount;
  public SellInvoicedetail(){
	  
  }
  public SellInvoicedetail(ItemClazz BeanClazz,String sInvoiceId){
    invoiceId = sInvoiceId;
    detailId = "";
    itemName = BeanClazz.getItemName();
    unit     = BeanClazz.getUnit();
    price    = (long) BeanClazz.getPrice();
    quantity = BeanClazz.getQuantity();
    amount   = (long) BeanClazz.getAmount();
  }

  public String getInvoiceId(){
    return invoiceId;
  }
  public void setInvoiceId(String sInvoiceId){
    invoiceId = sInvoiceId;
  }
  public String getDetailId(){
    return detailId;
  }
  public void setDetailId(String sDetailId){
    detailId = sDetailId;
  }
  public String getItemName(){
    return itemName;
  }
  public void setItemName(String sItemName){
    itemName = sItemName;
  }
  public String getUnit(){
    return unit;
  }
  public void setUnit(String sUnit){
    unit = sUnit;
  }
  public long getPrice(){
    return price;
  }
  public void setPrice(long iPrice){
    price= iPrice;
  }
  public long getQuantity(){
    return quantity;
  }
  public void setQuantity(long iQuantity){
    quantity= iQuantity;
  }
  public long getAmount(){
    return amount;
  }
  public void setAmount(long iAmount){
    amount= iAmount;
  }
}
